﻿<%@ Page Language="C#" Title="大中修初选方案" MasterPageFile="~/W_View/PageMaster.Master" CodeBehind="ListPrimaryProgramPage.aspx.cs" Inherits="STHPMS1.Web.W_View.Decision.Repair.PrimaryProgramPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <%= UiHelper.RefJsFileHtml("/Scripts/Control/datagrid.js")%>
    <%= UiHelper.RefJsFileHtml("/Scripts/Control/dropdown.js")%>
    <%= UiHelper.RefJsFileHtml("/Scripts/Control/enum.js")%>
    <style type="text/css">
	    table.thin {border-collapse: collapse}
	    td.thin {border: 1px solid #666}
	</style>

    <script type="text/javascript">
        var dlg;
        function ThicknessDesign(flag) {
            var row = $('#dg').datagrid('getSelected');

            if (!row) {
                $.messager.alert('消息提示', '编辑数据时，请选择一项!', 'warning');
                return;
            }

            loadRepairType(row.Pvmttype, $('#Medi_Maintype'), $('#Stru_Combi'), $("#tbThickness tr"));
            loadStruCombi(row.Medi_Maintype,$('#Stru_Combi'),$("#tbThickness tr"));
            $('#fmThickness').form('load', row);
            if (row.Medi_Maintype) {
                SetCombiValue(row.Iniproj_Id, $('#Stru_Combi'));
            }

            dlg = $('#dlgThickness');
            $('#dlgThickness').dialog('open');
        }

        function loadRepairType(pvmttype, medi_Maintype, stru_Combi, tbThickness) {
            var data = [];
            if (pvmttype == PavementTypeEnum.P21.id) {
                data.push(RepairTypeEnum.R350);
                data.push(RepairTypeEnum.R351);
                data.push(RepairTypeEnum.R352);
            }
            else if (pvmttype == PavementTypeEnum.P22.id) {
                data.push(RepairTypeEnum.R353);
                data.push(RepairTypeEnum.R354);
                data.push(RepairTypeEnum.R355);
                data.push(RepairTypeEnum.R356);
            }
            else if (pvmttype == PavementTypeEnum.P23.id) {
                data.push(RepairTypeEnum.R357);
            }

            medi_Maintype.combobox('loadData', data).combobox('clear');
            stru_Combi.combobox('clear');
            tbThickness.remove();
        }

        function loadStruCombi(repairType, stru_Combi, tbThickness) {
            if (!repairType) return;

            var data = [];
            var idStr = "";
            var textStr = "";
            if (repairType == RepairTypeEnum.R350.id) {

                idStr = MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M300.id + "," + MaterialTypeEnum.M302.id;
                textStr = MaterialTypeEnum.M300.text + "+" + MaterialTypeEnum.M302.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M300.id + "," + MaterialTypeEnum.M303.id;
                textStr = MaterialTypeEnum.M300.text + "+" + MaterialTypeEnum.M303.text;
                data.push({ id: idStr, text: textStr, value: '' });
            }
            else if (repairType == RepairTypeEnum.R351.id) {
                idStr = MaterialTypeEnum.M307.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M307.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M308.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M308.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M309.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M309.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M309.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M309.text + "+半刚性基层补强+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

            }
            else if (repairType == RepairTypeEnum.R352.id) {
                idStr = MaterialTypeEnum.M307.id + "," + MaterialTypeEnum.M312.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M307.text + "+" + MaterialTypeEnum.M312.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M308.id + "," + MaterialTypeEnum.M313.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M308.text + "+" + MaterialTypeEnum.M313.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M314.id + "," + MaterialTypeEnum.M302.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M314.text + "+" + MaterialTypeEnum.M302.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

            }
            else if (repairType == RepairTypeEnum.R353.id) {
                idStr = MaterialTypeEnum.M311.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M311.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });


                idStr = MaterialTypeEnum.M311.id + "," + MaterialTypeEnum.M300.id + "," + MaterialTypeEnum.M302.id;
                textStr = MaterialTypeEnum.M311.text + "+" + MaterialTypeEnum.M300.text + "+" + MaterialTypeEnum.M302.text;
                data.push({ id: idStr, text: textStr, value: '' });

            }
            else if (repairType == RepairTypeEnum.R354.id) {
                idStr = MaterialTypeEnum.M310.id + "," + MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M310.text + "+" + MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });
            }
            else if (repairType == RepairTypeEnum.R355.id) {
                idStr = MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });
            }
            else if (repairType == RepairTypeEnum.R356.id) {
                idStr = MaterialTypeEnum.M301.id;
                textStr = MaterialTypeEnum.M301.text;
                data.push({ id: idStr, text: textStr, value: '' });
            }
            else if (repairType == RepairTypeEnum.R357.id) {
                idStr = MaterialTypeEnum.M300.id;
                textStr = MaterialTypeEnum.M300.text;
                data.push({ id: idStr, text: textStr, value: '' });

                idStr = MaterialTypeEnum.M301.id;
                textStr = MaterialTypeEnum.M301.text;
                data.push({ id: idStr, text: textStr, value: '' });
            }
            stru_Combi.combobox('loadData', data).combobox('clear');
            tbThickness.remove();
        }

        function SetCombiValue(iniproj_Id, stru_Combi) {
            $.ajax({
                type: 'get',
                async: false,
                url: "/api/repair/t_combi?iniproj_Id=" + iniproj_Id,
                dataType: "json",
                success: function (msg) {
                    if (msg) {
                        var rect = {};
                        rect.id = [];
                        rect.value = [];

                        msg.forEach(function (e) {
                            rect.id.push(e.Stru_Combi);
                            rect.value.push(e.Layer_Thick);
                        })


                        var data = stru_Combi.combobox('getData');
                        data.forEach(function (e) {
                            if (rect.id.length == 1) {
                                rect.id = e.id;
                                e.value = rect.value[0];
                            }
                            else {
                                var flag = true;
                                var val = [];

                                if (e.id.length > 1) {
                                    var ids = e.id.split(',');
                                    if (ids.length == rect.id.length)//判断id参数个数是否相同
                                    {
                                        for (var i = 0; i < ids.length; i++) {
                                            for (var j = 0; j < rect.id.length; j++) {
                                                if (ids[i] == rect.id[j]) {
                                                    val[i] = rect.value[j];
                                                    break;
                                                }
                                            }
                                            if (val[i] == undefined || val[i] == null ) {//没有找到匹配的id退出循环
                                                flag = false;
                                                break;
                                            }
                                        }

                                        if (flag) {
                                            rect.id = e.id;
                                            e.value = val.join(',');
                                            return false;
                                        }
                                    }                                   
                                }
                            }
                        });

                        stru_Combi.combobox('select', rect.id);
                    }
                },
                error: printError
            });
        }

        function SetThicknessValue(rect) {
            var ids = rect.id;
            var texts = rect.text;
            var values = rect.value;

            $("#tbThickness tr").remove();

            if (texts.indexOf('+') > -1) {
                ids = rect.id.split(",");
                texts = rect.text.split("+");
                values = rect.value.split(",");

                for (var i = ids.length - 1; i >= 0; i--) {
                    AddTableRow(ids[i], texts[i], values[i]);
                }
            }
            else {
                AddTableRow(ids, texts, values);
            }

        }

        function AddTableRow(id, text, value) {
            if (value && value != '') value = String.format("value='{0}' ", value);
            var myRow = String.format("<tr><td>{0}</td><td><input id='M{1}' name='M{1}'  class='easyui-numberbox' style='width: 160px; height: 20px;' data-options='min:0,precision:2' {2} /></td></tr>", text, id, value);
            var targetObj = $("#tbThickness").append(myRow);
            $.parser.parse(targetObj);

            if (id > MaterialTypeEnum.M306.id && id < MaterialTypeEnum.M310.id) {
                var row = $('#dg').datagrid('getSelected');

                $.ajax({
                    type: 'get',
                    async: false,
                    url: "/api/repair/t_get?mainSegId=" + row.Mainsegid + "&materialType=" + id,
                    dataType: "json",
                    success: function (msg) {
                        if (msg) {
                            $('#M' + id).numberbox('setValue', msg);
                        }
                        $('#M' + id).numberbox('readonly', true);
                    },
                    error: printError
                });
            }
        }


        function MaterialsDesign(flag) {
            var row = $('#dg').datagrid('getSelected');

            if (!row) {
                $.messager.alert('消息提示', '编辑数据时，请选择一项!', 'warning');
                return;
            }

            loadRepairType(row.Pvmttype, $('#Medi_Maintype1'), $('#Stru_Combi1'), $("#tbThickness tr1"));
            loadStruCombi(row.Medi_Maintype, $('#Stru_Combi1'), $("#tbThickness1 tr"));

            $.ajax({
                type: 'get',
                async: false,
                url: "/api/repair/m_get?iniproj_Id=" + row.Iniproj_Id,
                dataType: "json",
                success: function (msg) {
                    if (msg) {
                        $('#fmMaterials').form('load', msg);
                        if (msg.Medi_Maintype) {
                            SetCombiValue(msg.Iniproj_Id, $('#Stru_Combi1'));
                        }

                        dlg = $('#dlgMaterials');
                        $('#dlgMaterials').dialog('open');
                    }
                },
                error: printError
            });
        }

        function SetMaterialValue(rect) {
            var row = $('#dg').datagrid('getSelected');

            if (!row) {
                $.messager.alert('消息提示', '编辑数据时，请选择一项!', 'warning');
                return;
            }

            var ids = rect.id;
            var texts = rect.text;
            var values = rect.value;

            $.ajax({
                type: 'get',
                async: true,
                url: "/api/repair/c_get?combi=" + ids + "&iniproj_Id=" + row.Iniproj_Id,
                dataType: "json",
                success: function (msg) {
                   if (msg) {
                        $("#tbThickness1").append(msg.tr);
                        $.parser.parse($("#tbThickness1"));
                        $("#Mate_Combi").textbox('setValue', msg.mate_combi);
                    }
                },
                error: printError
            });
        }
        
        function comparePlan(rect) {
            var url = "/api/repair/b_get?mainSegId=" + rect.id;            

            $('#tCompare').datagrid('uncheckAll');
            $("#tCompare").datagrid({
                url: url,
                method: 'get',
                title: "",
                iconCls: 'icon-edit',
                toolbar: $("#dlgCompare-toolbar"),
                width: 'auto',
                height: 'auto',
                nowrap: false,
                striped: true, //条纹
                border: true,
                collapsible: false,//是否可折叠的 
                fit: false,//自动大小 
                singleSelect: false,//是否单选 
                rownumbers: false,//行号 
                pagination: false,
                //onClickRow: onClickRow,
                loader: myLoader,
                checkOnSelect: false,
                selectOnCheck:false,
                onSelect: function (rowIndex, rowData) {
                    $('#tCompare').datagrid('unselectRow', rowIndex);
                },
                onCheckAll: function (rows) {
                   // $('#tCompare').datagrid('unselectAll');
                }
            });
        }


        function CompareShow() {
            $('#dlgCompare').dialog('open');
        }
        
        function compare_enable() {
            var schmeName = $('#schme_Name').textbox('getValue');
            if (!schmeName || schmeName == '') {
                $.messager.alert('消息提示', '请输入比选方案名称!', 'warning');
                return;
            }
            var checkRow = $('#tCompare').datagrid('getChecked');
            var ids = [];
            checkRow.forEach(function (r) {
                ids.push(r.iniproj_Id);
            });

            if (ids.length <2)
            {
                $.messager.alert('消息提示', '请选择两条以上比选方案!', 'warning');
                return;
            }
            var mainSegId = $('#cmbMainSeg').combobox('getValue');
            
            var data = {};
            data.ids = ids.join(',');
            data.schmeName = schmeName;
            data.mainSegId = mainSegId;

            $.ajax({
                type: 'post',
                async: false,
                url: "/api/repair/b_save",
                dataType: "json",
                data:data,
                success: function (msg) {
                    $('#dlgCompare').dialog('close');
                    window.location.replace('/dr_recom');
                },
                error: printError
            });                        
        }


        function ListPrimaryDel() {
            var row = $('#dg').datagrid('getSelected');
            if (!row) {
                $.messager.alert('消息提示', '删除数据时，请选择一项!', 'warning');
                return;
            }

            deleteData($('#dg'), null, "/api/repair/del0");
        }


        $(function () {
            var number = '<%= Page.RouteData.Values["page"] %>';
            var size = '<%= Page.RouteData.Values["size"] %>';

            dataGridBind($('#dg'), '/api/repair/plan0', '大中修初选方案', $('#tb'), number, size);

            $('.validatebox-text').bind('blur', function () {
                $(this).validatebox('enableValidation').validatebox('validate');
            });
        })

    </script>    

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table id="dg" class="easyui-datagrid content-place"  ajaxCached="false"  >
        <thead>
            <tr>
                <th data-options="field:'Iniproj_Id',editor:'text',width:160,align:'right',hidden:true">初选方案ID</th>
                <th data-options="field:'Design_Time',editor:'datebox',width:160,align:'right' " formatter="formatDate">设计时间</th>
                <th data-options="field:'Mainsegid',editor:'text',width:100,align:'right' ">路段编号</th>
                <th data-options="field:'Meas_Name',editor:'text',width:160,align:'right' ">初选方案名称</th>
                <th data-options="field:'Pvmttype',editor:'numberbox',width:160,align:'right' " formatter="formatPvmttype">路面类型</th>
                <th data-options="field:'Medi_Maintype',editor:'numberbox',width:80,align:'right' ">大中修类型</th>
                <th data-options="field:'Degdf',editor:'numberbox',width:80,align:'right' " >代表弯沉（0.01mm)</th>
                <th data-options="field:'Major_Accid',editor:'numberbox',width:80,align:'right' " >重大及以上事故发生数量</th>
            </tr>
        </thead>
    </table>
   
    <div id="tb">
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="ListPrimaryDel()">删除初选方案</a> 
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" onclick="ThicknessDesign()">厚度设计</a> 
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-cut',plain:true" onclick="MaterialsDesign()">材料设计</a> 
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-filter',plain:true" onclick="CompareShow()">比选初选方案</a> 
    </div>


    <div id="dlgThickness" class="easyui-dialog" title="厚度设计" style="width:420px;height:400px;padding:10px" closed="true"  data-options="
				iconCls: 'icon-save',
				buttons: '#dlgThickness-buttons'">
        <form id="fmThickness" method="post" action="/api/repair/t_save">
            <table>			     
                <tr style="display:none">
                    <td>初选方案ID:</td>
                    <td><input name='Iniproj_Id' class='easyui-validatebox easyui-textbox' data-options="readonly:true" /></td>
                </tr>
                <tr>
                    <td>养护路段:</td>
                    <td><input name='Mainsegid' class='easyui-validatebox easyui-textbox'  data-options="readonly:true"/></td>
                </tr>                
                <tr>
                    <td>初选方案名称:</td>
                    <td><input name='Meas_Name' class='easyui-validatebox easyui-textbox' data-options="readonly:true" /></td>
                </tr>
                 <tr>
                    <td>设计时间:</td>
                    <td><input name='Design_Time' class='easyui-validatebox easyui-datebox'  data-options="readonly:true" /></td>
                </tr>
                <tr>
                    <td>路面类型:</td>
                    <td><select class="easyui-combobox" name="Pvmttype" id="Pvmttype" style="width:170px;" data-options="readonly:true,onSelect:function(rect){ loadRepairType(rect.value,$('#Medi_Maintype'), $('#Stru_Combi'), $('#tbThickness tr')); }">
		                    <option value="21">沥青路面</option>
		                    <option value="22">水泥路面</option>
		                    <option value="23">砂石路面</option>
	                    </select>
                    </td>
                </tr>
                <tr>
                    <td>大中修类型:</td>                    
	                <td><input id="Medi_Maintype" name='Medi_Maintype'  class="easyui-combobox" data-options="prompt:'大中修类型',valueField:'id',textField:'text',onSelect:function(rect){ loadStruCombi(rect.id,$('#Stru_Combi'),$('#tbThickness tr')); } "/></td>
                </tr>
                <tr>
                    <td>结构组合:</td>    
                    <td><input id="Stru_Combi" name='Stru_Combi'  class="easyui-combobox" data-options="prompt:'结构组合',valueField:'id',textField:'text' ,onSelect:function(rect){ SetThicknessValue(rect); } "/></td>
                </tr>                 
                <tr>
                    <td colspan="2">
                        <fieldset>
                            <legend>厚度设计</legend>
                            <table id="tbThickness">
                            </table>
                        </fieldset>
                    </td>
                </tr>               
		    </table>            
        </form>

        
        <div id="dlgThickness-buttons">
		    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:sumbitData($('#dg'),$('#dlgThickness'))">确定</a>
		    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#dlgThickness').dialog('close')">取消</a>
	    </div>
    </div>

    

    <div id="dlgMaterials" class="easyui-dialog" title="材料设计" style="width:600px;height:600px;padding:10px" closed="true"  data-options="
				iconCls: 'icon-save',
				buttons: '#dlgMaterials-buttons'">
        <form id="fmMaterials" method="post" action="/api/repair/m_save">
            <table>		
                <tr style="display:none">
                    <td>初选方案ID:</td>
                    <td><input name='Iniproj_Id' class='easyui-validatebox easyui-textbox' data-options="readonly:true" />
                        <input name='Mate_Combi' id='Mate_Combi' class='easyui-validatebox easyui-textbox' data-options="readonly:true" />
                    </td>
                </tr>
                <tr>
                    <td>养护路段:</td>
                    <td><input name='Mainsegid' class='easyui-validatebox easyui-textbox'  data-options="readonly:true"/></td>
                </tr> 
                <tr>
                    <td>初选方案名称:</td>
                    <td><input name='Meas_Name' class='easyui-validatebox easyui-textbox' data-options="readonly:true" /></td>
                </tr>
                 <tr>
                    <td>设计时间:</td>
                    <td><input name='Design_Time' class='easyui-validatebox easyui-datebox'  data-options="readonly:true" /></td>
                </tr>
                <tr>
                    <td>路面类型:</td>
                    <td><select class="easyui-combobox" name="Pvmttype" id="Pvmttype1" style="width:170px;" data-options="readonly:true,onSelect:function(rect){loadRepairType(rect.value,$('#Medi_Maintype1'), $('#Stru_Combi1'), $('#tbThickness tr1')); }">
		                    <option value="21">沥青路面</option>
		                    <option value="22">水泥路面</option>
		                    <option value="23">砂石路面</option>
	                    </select>
                    </td>
                </tr>
                <tr>
                    <td>大中修类型:</td>                    
	                <td><input id="Medi_Maintype1" name='Medi_Maintype'  class="easyui-combobox" data-options="prompt:'大中修类型',readonly:true,valueField:'id',textField:'text',onSelect:function(rect){ loadStruCombi(rect.id,$('#Stru_Combi1'),$('#tbThickness1 tr')); } "/></td>
                </tr>
                <tr>
                    <td>结构组合:</td>    
                    <td><input id="Stru_Combi1" name='Stru_Combi'  class="easyui-combobox" data-options="prompt:'结构组合',readonly:true,valueField:'id',textField:'text' ,onSelect:function(rect){ SetMaterialValue(rect); } "/></td>
                </tr>     
                 <tr>
                    <td>技术等级:</td>
                     <td><select class="easyui-combobox" name="Rdclass_Dictid" id="Rdclass_Dictid" style="width:170px;" data-options="readonly:true">
		                    <option value="160">高速公路</option>
		                    <option value="161">一级公路</option>
		                    <option value="162">二级公路</option>
		                    <option value="163">三级公路</option>
		                    <option value="164">四级公路</option>
	                    </select>
                    </td>
                </tr>
                 <tr>
                    <td>重大及以上事故发生数量:</td>
                    <td><input name='Major_Accid' class='easyui-validatebox easyui-numberbox' data-options="readonly:true" />
                    </td>
                </tr>
                <tr>
                    <td>最热月最高气温:</td>
                    <td><input name='Hotmonth' class='easyui-validatebox easyui-numberbox' data-options="min:0,precision:2" /></td>
                </tr>
                <tr>
                    <td>极端最低气温:</td>
                    <td><input name='Exetem' class='easyui-validatebox easyui-numberbox' data-options="min:0,precision:2" /></td>
                </tr>
                <tr>
                    <td>年降雨量:</td>
                    <td><input name='Annurain' class='easyui-validatebox easyui-numberbox' data-options="min:0,precision:2" /></td>
                </tr>
                <tr>
                    <td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="">生成决策</a></td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <fieldset>
                            <legend>材料设计</legend>
                            <table id="tbThickness1" class="thin" >     
                            </table>
                        </fieldset>
                    </td>
                </tr>
		    </table>
        </form>

        <div id="dlgMaterials-buttons">
		    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:sumbitData($('#dg'),$('#dlgMaterials'),$('#fmMaterials'))">确定</a>
		    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#dlgMaterials').dialog('close')">取消</a>
	    </div>
    </div>

    
    <div id="dlgCompare-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton" onclick="compare_enable()">确定</a>
	</div>

    
    <div id="dlgCompare" class="easyui-dialog" title="比选方案" style="width:600px;height:430px;padding:10px" closed="true"  data-options="
                toolbar: '#dlgCompare-toolbar',
				buttons: '#dlgCompare-buttons'">
        <table id="tCompare" title="" class="easyui-datagrid" style="width:550px;height:250px" url="" idField="iniproj_Id" pagination="false" iconCls="icon-save"
            data-options="onLoadSuccess:function(data){ MergeCellsInChecks('tCompare','ckCompare','iniproj_Name,stru_Type');}" >
            <thead>                
                <tr>
                    <th data-options="field:'ckCompare'" checkbox="true">是否比选</th>
                    <th data-options="field:'iniproj_Name',editor:'textbox',width:200,align:'right' " >比选方案</th>
                    <th data-options="field:'stru_Type',editor:'textbox',width:100,align:'right' " >路面结构</th>
                    <th data-options="field:'stru_Name',editor:'textbox',width:120,align:'right' " >路面材料</th>
                    <th data-options="field:'stru_Thinkness',editor:'numberbox',width:80,align:'right' " >厚度 /cm</th>
                </tr>
            </thead>
        </table>

        <div id="dlgCompare-toolbar">
		    <select id="cmbMainSeg" class="easyui-combobox" panelHeight="80" style="width:100px" data-options="prompt:'养护路段',url:'/api/repair/s_get',method:'get',valueField:'id',textField:'id' ,onSelect:comparePlan" ></select> 
            <input id="schme_Name" name='schme_Name' class='easyui-validatebox easyui-textbox' data-options="prompt:'大中修比选方案名称'" />      
	    </div>
    </div>

</asp:Content>
